package com.niguang.work.show.yxyfFace;


import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.niguang.work.show.yxyfFace.service.YmyfFaceService;
import com.niguang.work.show.yxyfFace.vo.SynMemberResultVo;
import com.niguang.work.show.yxyfFace.vo.SynchroMembersVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.util.StopWatch;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.io.IOException;

/**
 * telpFace 公司人脸控制器
 */
@RestController
@RequestMapping("/ymyl/face/")
@Slf4j
public class YmyfFaceController {


    @Resource
    private YmyfFaceService ymyfFaceService;

    /**
     * 同步会员信息
     *
     * @param
     * @return
     */
    @PostMapping(value = "synMembers")
    public SynMemberResultVo synMembers(SynchroMembersVo synchroMembersVo) {
        // sch_610
       /* SynchroMembersVo synchroMembersVo = new SynchroMembersVo("yxyf_user_sync_user_info", "gzkj610",
                "12365", "https://file.gzhuijiangyuan.com/file/55,383f124fcebd", "朱浪", "2018-09-06", "M");*/
        return ymyfFaceService.synMembers(synchroMembersVo);
    }



}
